package com.chenjie.executor.day19;


/**
 *
 *
 * @author chenjie
 * @version JDK 8
 * @className Main1 (此处以class为例)
 * @date 2024/5/27
 * @description TODO
 */
public class Main7 {

    /**
     *
     * @param args
     */
    public static void main(String[] args) throws InterruptedException {
        Task3 task=new Task3();
        Thread thread = new Thread(task,"thread");
        thread.start();
        Thread.sleep(100L);
        synchronized (task){
            System.out.println("人人都是程序员1");

        }
    }

}
